package pluginUtils;

public class Rotation4D extends Matrix4D{
	private int type;
	private double angle;
	
	public Rotation4D(int t,double a){
		super(); 
		for(int i=0;i<4;i++) coef[i][i]=1;
		int i=0,j=0; 
		switch(t){
		case 0:i=0; j=1; break; 
		case 1: i=1; j=2; break;
		case 2 : i=0; j=3; break; 
		case 3 : i=1; j=3; break;
		case 4 : i=0; j=2; break; 
		case 5 : i=2; j=3; 
	}
		this.coef[i][i]=Math.cos(a);
		this.coef[j][j]=this.coef[i][i];
		this.coef[i][j]=Math.sin(a); 
		if(t>2) this.coef[i][j]=-this.coef[i][j];
		this.coef[j][i]=-this.coef[i][j]; 
}
	public static void main(String[] args) {
		Rotation4D roto=new Rotation4D(1,Math.PI/4); 
		System.out.println(roto);
	}
}
